const mysql = require('mysql')
const { readFileSync } = require('fs')

let config = JSON.parse(readFileSync('./config.json', {encoding: 'utf8'}))
let pool = mysql.createPool(config.mysql)

module.exports = pool